home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Windows / WindowPile.h < prev    next >
Text File  |  1997-06-28  |  616b  |  33 lines

  1. // WindowPile.h
  2.  
  3. #ifndef WindowPile_h
  4. #define WindowPile_h
  5.  
  6. #ifndef Rectangle_h
  7. #include "Rectangle.h"
  8. #endif
  9.  
  10. class WindowPile
  11.   {
  12.     private:
  13.         Rectangle pile;
  14.         PointObject first;
  15.         PointObject stop;
  16.         PointObject offset;
  17.         bool finished;
  18.         
  19.     public:
  20.         WindowPile( Rectangle available, PointObject bestSize );
  21.         
  22.         bool Finished() const                        { return finished; }
  23.         bool Unfinished() const                        { return !finished; }
  24.         
  25.         void operator++();
  26.         void operator++(int)                            { operator++(); }
  27.         
  28.         const Rectangle& operator*() const        { return pile; }
  29.         const Rectangle *operator->() const        { return &pile; }
  30.   };
  31.  
  32. #endif
  33.